<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>给每个li设置不同方向的边框</title>
    <style>
        li {
            width: 200px;
            height: 50px;
            border: 2px transparent;
        }

        .li1 {
            border-top: solid red;

        }

        .li2 {
            border-right: dotted green;

        }

        .li3 {
            border-bottom: dashed blue;
        }

        .li4 {
            border-left: 3px solid purple;
        }

        .div1 {
            width: 100px;
            height: 100px;
            border: 5px solid rebeccapurple;
            border-radius: 10px 30px;
        }
    </style>
</head>

<body>
    <ul>
        <li class="li1">第一个li</li>
        <li class="li2">第二个li</li>
        <li class="li3">第三个li</li>
        <li class="li4">第四个li</li>
    </ul>

    <div class="div1"></div>
</body>

</html>